package com.doit.day02;

public final class Lion$ {
    public static Lion$ MING_GE;
    private final int id = 1;
    private String name;
    private double weight;
    private My_Function2 add;

    static {
        new Lion$();
    }

    public void eat(){
        System.out.println("我特别能吃");
    }

    public int id() {
        return id;
    }

    public String name() {
        return name;
    }

    public void name_$eq(String name) {
        this.name = name;
    }

    public double weight() {
        return weight;
    }

    public void weight_$eq(double weight) {
        this.weight = weight;
    }

    public My_Function2 add() {
        return add;
    }

    //构造方法
    private Lion$(){
        MING_GE = this;
        this.name = "辛巴";
        this.weight = 100.10;
        this.add = new My_Function2() {
            @Override
            public Integer apply(int a, int b) {
                return a+b;
            }
        };
    }

}
